package edu.zut.cs.software.example.teach.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.example.service.impl.GenericManagerImpl;
import edu.zut.cs.software.example.student.dao.StudentDao;
import edu.zut.cs.software.example.student.domain.Student;
import edu.zut.cs.software.example.teach.service.StudentManager;



/**
 * @author 陈明阳
 *
 */
@Service("studentManager")
public class StudenManagerImpl extends GenericManagerImpl<Long, Student> implements StudentManager {

	StudentDao studentDao;
	
	@Autowired
	  public void setStudentDao(StudentDao studentDao) {
		this.studentDao=studentDao;
		this.dao=this.studentDao;
	}

	@Override
	public Student echo(Student student) {
		student.setName("setNAME");
		student.setNumber("setNumber");
		student.setPhone("setNumber");
		student.setGender("setGedder");
		return student;
	}

	@Override
	public Student findById(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Student> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

}
